from __future__ import print_function

import logging

class CLI:
	class CLIExceptionMissingArg:
		def __init__(self, value):
			self.value = value
		def __str__(self):
			return self.value

	class CLIExceptionNotADir:
		def __init__(self, value):
			self.value = value
		def __str__(self):
			return self.value

	class CLIExceptionPathNotExist:
		def __init__(self, value):
			self.value = value
		def __str__(self):
			return self.value

	class CLIExceptionUserCancel:
		def __init__(self, value):
			self.value = value
		def __str__(self):
			return self.value

	_args = None
	_db = None
	_pdriveFiles = None
	_pdriveRoot = None
	_cfg = None

	def __init__(self, args, db, cfg):
		self._args = args
		self._db = db
		self._pdriveFiles = self._db.fetchKeyValue("pdrive_files")
		self._pdriveRoot = self._db.fetchKeyValue("pdrive_root")
		self._cfg = cfg
		logging.debug("{} instance init'ed".format(__name__))
